<?php

class Application_Form_Documentos extends Sgit_Form
{
    
    public function init_form()
    {



        $files[0]=new Zend_Form_Element_File('documento');
        $files[0]->setLabel('Adjuntar Documentos')
                ->setDestination(PUBLIC_DOCUMENT.DS."archivos/control-economico")
                ->addValidator('Size', false, 31457280)
                ->addValidator('Count', false, array('min' => 0, 'max' => 4))
                ->setMultiFile(8)
                ->setValueDisabled(true); 
        $this->addElement($files[0]);
         

  
       $this->setElementDecorators(array(
		    'ViewHelper',
		   'Errors',
		    array(array('data' => 'HtmlTag'),	array('tag' => 'td', 'class' => 'element')   ),
		    array('Label', array('tag' => 'td')),
		    array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
	   ));
       
       
 
        //fix file 
       $files[0]->setDecorators(
            array(
                'File',
                'Errors',
                array(array('data' => 'HtmlTag'), array('tag' => 'td','class' => 'element')),
                array('Label', array('tag' => 'td')),
                array(array('row' => 'HtmlTag'), array('tag' => 'tr'))
            )
        );
    



    }
}
